package com.imooc;

public class Dog extends Animal {
	public Dog(){
		super();	//显式调用父类构造方法，默认会隐式调用父类的构造方法初始化
		System.out.println("Dog类执行了");
	}

	public String toString() {
		return "Dog [age=" + age + ", name=" + name + "]";
	}
	
	public void eat() {
		System.out.println("狗狗吃");
	}

}
